package com.example.demoapp.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.SearchView;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.demoapp.R;

import butterknife.BindView;

public class SearchDisplayActivity extends AppCompatActivity {
    @BindView(R.id.searchview)
    SearchView searchView;

    @BindView(R.id.cancel)
    TextView cancel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search_display);

        searchView.requestFocus();

        cancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

}